package com.ds.iecs.im;

import org.mx.notify.config.NotifyServerConfig;
import org.mx.service.SpringBootUtils;
import org.mx.service.server.config.ServerConfig;
import org.mx.spring.config.SpringConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

/**
 * DS IECS IM服务器启动类
 * 
 * @author john.peng
 *
 */
@Configuration
@PropertySource({ "iecs-im-server.properties" })
@Import({ SpringConfig.class, ServerConfig.class, NotifyServerConfig.class })
@ComponentScan({ "com.ds.iecs.im.processor", "com.ds.iecs.im.store" })
public class IecsIMServerApplication {
	private static final Logger logger = LoggerFactory.getLogger(IecsIMServerApplication.class);
	private static SpringBootUtils bootUtils = new SpringBootUtils();

	/**
	 * IECS IM服务器运行入口
	 * 
	 * @param args 运行参数暂无，忽略
	 */
	public static void main(String[] args) {
		bootUtils.startApplication(IecsIMServerApplication.class, args);
		if (logger.isInfoEnabled()) {
			logger.info("The DS IECS IM server start successfully.");
		}
	}
}
